package com.ssy.lingxi.marketing.api.model.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 进货单商品请求类
 * @author yzc
 * @version 2.0.0
 * @date 2021/9/1
 */
@Getter
@Setter
public class GoodsCartRequest implements Serializable {

    private static final long serialVersionUID = -481618010406232709L;

    /**
     * 当前登录会员id
     */
    @NotNull(message = "当前登录会员id不能为空")
    private Long memberId;

    /**
     * 当前登录角色id
     */
    @NotNull(message = "当前登录角色id不能为空")
    private Long roleId;

    /**
     * 商城id
     */
    @NotNull(message = "商城id不能为空")
    private Long shopId;

    /**
     * skuId
     */
    //@NotEmpty(message = "skuId不能为空")
    private List<Long> skuIdList;
    /**
     * sku信息
     */
    @Valid
    @NotEmpty(message = "sku列表信息不能为空")
    @Size(min = 1,message = "sku列表信息不能为空")
    private List<GoodsCartSkuItemRequest> skuList;
}
